﻿using System;
using System.Data;
using System.Collections.Generic;
using EnterpriseFund.Model;
namespace EnterpriseFund.BLL
{
    /// <summary>
    /// VAllowanceIssueCheckSelectIssue
    /// </summary>
    public partial class VAllowanceIssueCheckSelectIssue
    {
        private readonly EnterpriseFund.DAL.VAllowanceIssueCheckSelectIssue dal = new EnterpriseFund.DAL.VAllowanceIssueCheckSelectIssue();
        public VAllowanceIssueCheckSelectIssue()
        { }
        #region  BasicMethod
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List<EnterpriseFund.Model.VAllowanceIssueCheckSelectIssue> DataTableToList(DataTable dt)
        {
            List<EnterpriseFund.Model.VAllowanceIssueCheckSelectIssue> modelList = new List<EnterpriseFund.Model.VAllowanceIssueCheckSelectIssue>();
            int rowsCount = dt.Rows.Count;
            if (rowsCount > 0)
            {
                EnterpriseFund.Model.VAllowanceIssueCheckSelectIssue model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = dal.DataRowToModel(dt.Rows[n]);
                    if (model != null)
                    {
                        modelList.Add(model);
                    }
                }
            }
            return modelList;
        }

        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        public int GetRecordCount(string strWhere)
        {
            return dal.GetRecordCount(strWhere);
        }

        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  BasicMethod
        #region  ExtensionMethod

        #endregion  ExtensionMethod
    }
}

